package org.dromara.travel.domain.bo;

import org.dromara.travel.domain.RiskDisclaimer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 免责声明业务对象 risk_disclaimer
 *
 * @author jacheut
 * @date 2024-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RiskDisclaimer.class, reverseConvertGenerate = false)
public class RiskDisclaimerBo extends BaseEntity {

    /**
     * 自增主键
     */
    @NotNull(message = "自增主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型，1:发布活动免责声明，2:加入活动免责声明
     */
    @NotNull(message = "类型，1:发布活动免责声明，2:加入活动免责声明不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
